The ByteArray class.
More...
|
| long | getLength () |
| | get length More...
|
| |
| | deleteRange (long position, long length) |
| | Delete range in byte array. More...
|
| |
| | fillRange (long position, long length, byte[] fillBytes) |
| | Fill range in byte array. More...
|
| |
| | writeSignedInt (long position, long length, ENDIAN_TYPE endianType) |
| | Write signed integer to byte array. More...
|
| |
| | writeSignedIntBits (long position, long length, ENDIAN_TYPE endianType) |
| | Write signed integer to byte array (on bit level) More...
|
| |
| | writeUnsignedInt (long position, long length, ENDIAN_TYPE endianType) |
| | Write unsigned integer to byte array. More...
|
| |
| | writeUnsignedIntBits (long position, long length, ENDIAN_TYPE endianType) |
| | Write unsigned integer to byte array (on bit level) More...
|
| |
| | insertByte (long position, char byte) |
| | Insert byte into byte array. More...
|
| |
| | replaceByte (long position, char byte) |
| | Replace byte in byte array. More...
|
| |
| | appendFile (String fileName) |
| | Append file to byte array. More...
|
| |
| | writeToFile (String fileName) |
| | Write byte array to file. More...
|
| |
The ByteArray class.
A byte array object represents mostly a larger memory chunk. The actual storage is handled by ByteStorage objects.
- Author
- Andreas Pehnack
- Date
- 2009-12-10
◆ appendFile()
Append file to byte array.
- Author
- Andreas Pehnack
- Date
- 2015-10-14
- Parameters
-
| [in] | fileName | Name of file to append |
◆ deleteRange()
| deleteRange |
( |
long |
position, |
|
|
long |
length |
|
) |
| |
Delete range in byte array.
delete range of bytes in byte array
- Author
- Andreas Pehnack
- Date
- 2010-09-03
- Parameters
-
| [in] | position | Position where to delete |
| [in] | length | Number of bytes to delete |
- See also
- insertByte()
◆ fillRange()
| fillRange |
( |
long |
position, |
|
|
long |
length, |
|
|
byte [] |
fillBytes |
|
) |
| |
Fill range in byte array.
Fill range of bytes in byte array. If the passed array is smaller than the number of bytes to fill the array is repeated
- Author
- Andreas Pehnack
- Date
- 2010-09-03
- Parameters
-
| [in] | position | Position where to fill |
| [in] | length | Number of bytes to fill |
| [in] | fillBytes | An array of bytes to fill in range |
- See also
- insertByte()
◆ getLength()
get length
get length of byte array
- Author
- Andreas Pehnack
- Date
- 2009-12-12
- Returns
- The length of the byte array
◆ insertByte()
| insertByte |
( |
long |
position, |
|
|
char |
byte |
|
) |
| |
Insert byte into byte array.
- Author
- Andreas Pehnack
- Date
- 2010-09-03
- Parameters
-
| [in] | position | Position where to insert |
| [in] | byte | The byte to insert |
- See also
- deleteRange()
◆ replaceByte()
| replaceByte |
( |
long |
position, |
|
|
char |
byte |
|
) |
| |
Replace byte in byte array.
- Author
- Andreas Pehnack
- Date
- 2010-09-03
- Parameters
-
| [in] | position | Position where to replace |
| [in] | byte | The byte to replace |
- See also
- deleteRange()
-
insertByte()
◆ writeSignedInt()
| writeSignedInt |
( |
long |
position, |
|
|
long |
length, |
|
|
ENDIAN_TYPE |
endianType |
|
) |
| |
Write signed integer to byte array.
- Author
- Andreas Pehnack
- Date
- 2012-06-10
- Parameters
-
| [in] | position | Position where to write (bytes) |
| [in] | length | Number of bytes to write |
| [in] | endianType | Endianness of number to write |
- See also
- insertByte()
◆ writeSignedIntBits()
| writeSignedIntBits |
( |
long |
position, |
|
|
long |
length, |
|
|
ENDIAN_TYPE |
endianType |
|
) |
| |
Write signed integer to byte array (on bit level)
- Author
- Andreas Pehnack
- Date
- 2012-06-10
- Parameters
-
| [in] | position | Position where to write (bits) |
| [in] | length | Number of bits to write |
| [in] | endianType | Endianness of number to write |
- See also
- insertByte()
◆ writeToFile()
| writeToFile |
( |
String |
fileName | ) |
|
Write byte array to file.
- Author
- Andreas Pehnack
- Date
- 2015-10-17
- Parameters
-
| [in] | fileName | Name of output file |
◆ writeUnsignedInt()
| writeUnsignedInt |
( |
long |
position, |
|
|
long |
length, |
|
|
ENDIAN_TYPE |
endianType |
|
) |
| |
Write unsigned integer to byte array.
- Author
- Andreas Pehnack
- Date
- 2012-06-10
- Parameters
-
| [in] | position | Position where to write |
| [in] | length | Number of bytes to write |
| [in] | endianType | Endianness of number to write |
- See also
- insertByte()
◆ writeUnsignedIntBits()
| writeUnsignedIntBits |
( |
long |
position, |
|
|
long |
length, |
|
|
ENDIAN_TYPE |
endianType |
|
) |
| |
Write unsigned integer to byte array (on bit level)
- Author
- Andreas Pehnack
- Date
- 2012-06-10
- Parameters
-
| [in] | position | Position where to write (bits) |
| [in] | length | Number of bits to write |
| [in] | endianType | Endianness of number to write |
- See also
- insertByte()
The documentation for this class was generated from the following file:
- Generated/synalysis_wrap_lua.cpp